#ifndef CLICKABLELABEL_H
#define CLICKABLELABEL_H

#include <QLabel>
#include <QMouseEvent>
class ClickableLabel : public QLabel   
{
    Q_OBJECT
public:
    ClickableLabel(const QString &text, QWidget *parent = nullptr);
signals:
    void clicked(); // 定义一个 clicked 信号

protected:
    void mousePressEvent(QMouseEvent *event) override;
};

#endif // CLICKABLELABEL_H
